from models.baseModel import baseModel
from sqlalchemy import Column, Integer, String


class User(baseModel):
    __tablename__ = "user"  # 数据库表名
    username = Column(String(20), nullable=False, unique=True, comment="用户姓名")
    password = Column(String(20), nullable=False, comment="密码")
    nickname = Column(String(50), nullable=True, comment="昵称")
    email = Column(String(50), nullable=True, comment="电子邮箱")
